package com.example.userserver.enums;

public enum ReturnEnum {
    SUCCESS(200, "Success"),
    LOGIN_WRONG(3001, "账号或密码输入错误"),
    PASSWORD_WRONG(3002, "原密码输入错误"),
    ACCOUNT_RE(3011, "账号已存在"),
    USERNAME_RE(3012, "昵称已存在"),
    ACCOUNT_CANCEL(3013, "您的账号已注销"),
    ACCOUNT_FREEZE(3014, "您的账号已被冻结，无法完成该操作"),
    STUDENTID_RE(3015, "你选择的学校的该学号已存在"),
    COLLECTION_RE(3016, "已收藏"),
    CITYNAME_RE(3017, "该城市名已存在"),
    SCHOOLNAME_RE(3018, "该学校名已存在"),

    TOKEN_WRONG(4001,"token无效"),
    TOKEN_LACK(4002,"登录失效请重新登录"),

    BALACNE_NOT_ENOUGH(5001, "余额不足"),
    ;

    private Integer code;
    private String message;

    ReturnEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }



}
